/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package linkeddata.arida.ufc.br.enums;

/**
 *
 * @author jeovane
 */
public enum OperatorsSparql {

    GT(">"),
    LT("<"),
    EQUAL("="),
    DIFFERENT("!="),
    REGEX("regex");
    private final String operator;

    private OperatorsSparql(String operator) {
        this.operator = operator;
    }

    @Override
    public String toString() {
        return operator;
    }

    public static OperatorsSparql getType(String code) {
        return values()[Integer.parseInt(code)];
    }
}
